<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" Inherits="CKS.FormsBasedAuthentication.EditConnections, CKS.FormsBasedAuthentication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d0c9b215512a2c5d" MasterPageFile="~/_layouts/application.master" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssap" Namespace="Microsoft.SharePoint.ApplicationPages"
    Assembly="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace= "Microsoft.SharePoint.ApplicationPages" %>

<asp:Content ID="Content1" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="PageTitle"
						Text="Manage Connection Strings"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral ID="TitleArea"
						Text="Manage Connection Strings"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderMain" runat="server">

<TABLE border="0" width="100%" cellspacing="0" cellpadding="0" class="ms-descriptiontext">
	<wssuc:InputFormSection runat="server"
		Title="<%$Resources:spadmin, multipages_webapplication_title%>"
		Description="<%$Resources:spadmin, multipages_webapplication_desc%>" >
		<Template_InputFormControls>
			<tr><td>
			<SharePoint:WebApplicationSelector id="Selector" runat="server" OnContextChange="Selector_OnContextChange"  />
			</td></tr>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
<wssuc:InputFormSection runat="server" Title="Basic Provider Information">
	<Template_InputFormControls>
		<wssuc:InputFormControl runat="server" LabelText="Connection String Name:">
			<Template_Control>
			    <asp:DropDownList ID="ddlConnectionNames" OnSelectedIndexChanged="ddlConnectionNames_SelectedIndexChanged" AutoPostBack="true" runat="server"></asp:DropDownList>&nbsp;
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Connection Name:">
			<Template_Control>
			<wssawc:InputFormTextBox Enabled="false" maxlength="255" ID="txtConnectionName" Direction="LeftToRight" Runat="server" />
			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator1" ControlToValidate="txtConnectionName" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
	</Template_InputFormControls>
</wssuc:InputFormSection>
<wssuc:InputFormSection ID="ifsSQLProvider" runat="server" Title="Connection String">
	<Template_InputFormControls>
		<wssuc:InputFormControl runat="server" LabelText="Connection String:">
			<Template_Control>
    		    <wssawc:InputFormTextBox class="ms-long" MaxLength="255" ID="txtConnectionString" Direction="LeftToRight" runat="Server" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator2" ControlToValidate="txtConnectionString" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
	</Template_InputFormControls>
</wssuc:InputFormSection>
<wssuc:InputFormSection runat="server" Title="Provider Name">
	<Template_InputFormControls>
		<wssuc:InputFormControl runat="server" LabelText="Provider Name:">
			<Template_Control>
    		    <wssawc:InputFormTextBox class="ms-long" MaxLength="255" ID="txtProviderName" Direction="LeftToRight" runat="Server" />
			</Template_Control>
		</wssuc:InputFormControl>
	</Template_InputFormControls>
</wssuc:InputFormSection>
<wssuc:InputFormSection ID="ifsAdminUser" runat="server" Title="New Administrator User Settings" Visible="false">
	<Template_InputFormControls>
		<wssuc:InputFormControl runat="server" LabelText="Administator Username:">
			<Template_Control>
    		    <wssawc:InputFormTextBox ID="txtUsername" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator9" ControlToValidate="txtUserName" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Administator Password:">
			<Template_Control>
    		    <wssawc:InputFormTextBox  TextMode="Password" ID="txtPassword" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator10" ControlToValidate="txtPassword" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Email:">
			<Template_Control>
    		    <wssawc:InputFormTextBox ID="txtEmail" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator11" ControlToValidate="txtEmail" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Password Question:">
			<Template_Control>
    		    <wssawc:InputFormTextBox CssClass="ms-long" ID="txtPasswordQuestion" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator12" ControlToValidate="txtPasswordQuestion" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Password Answer:">
			<Template_Control>
    		    <wssawc:InputFormTextBox CssClass="ms-long" ID="txtPasswordAnswer" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator13" ControlToValidate="txtPasswordAnswer" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
	</Template_InputFormControls>
</wssuc:InputFormSection>
	<wssuc:ButtonSection runat="server">
		<Template_Buttons>
		<asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="DeleteConnection" Text="Delete" ID="btnDelete" AccessKey="D" />
		<asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="OnSubmit" Text="<%$Resources:wss,multipages_okbutton_text%>" id="BtnOk" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
		</Template_Buttons>
	</wssuc:ButtonSection>
</TABLE>
</asp:Content>


